package com.jddup.context;

import com.jddup.common.pojo.EntityAndDbDifference;
import com.jddup.common.pojo.vo.ColumnDiffIndexVO;
import com.jddup.common.pojo.vo.DataSourceIndexVO;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by ZZB on 2017/12/17.
 */
public class CompareContext {
    public static Map<String,EntityAndDbDifference > beanNameDifferencesMap = new HashMap<>();
    public static Map<String,EntityAndDbDifference > tableNameDifferencesMap = new HashMap<>();
    public static List<DataSourceIndexVO> dataSourceIndexVOS = new ArrayList<>();
    public static Map<String, Map<String,ColumnDiffIndexVO>> tableColumnDiffIndexVOMap = new HashMap<>();

    public static void setDataSourceIndexVOS(List<DataSourceIndexVO> dataSourceIndexVOS) {
        CompareContext.dataSourceIndexVOS = dataSourceIndexVOS;
    }

    public static List<DataSourceIndexVO> getDataSourceIndexVOS() {
        return dataSourceIndexVOS;
    }

    public static Map<String, EntityAndDbDifference> getBeanNameDifferencesMap() {
        return beanNameDifferencesMap;
    }

    public static Map<String, EntityAndDbDifference> getTableNameDifferencesMap() {
        return tableNameDifferencesMap;
    }

    public static Map<String, Map<String, ColumnDiffIndexVO>> getTableColumnDiffIndexVOMap() {
        return tableColumnDiffIndexVOMap;
    }
}
